package com.lanou.service.impl;
import com.lanou.bean.AddrInfo;
import com.lanou.mapper.AddrInfoMapper;
import com.lanou.service.AddrInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddrInfoServiceImpl implements AddrInfoService{

    @Autowired
    private AddrInfoMapper addrInfoMapper;

    @Override
    public AddrInfo selectByPrimaryKey(Integer id) {
        return addrInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insertSelective(AddrInfo record) {
        return addrInfoMapper.insertSelective(record);
    }

    @Override
    public int selectAddrIdByVipNo(String vipNo) {
        return addrInfoMapper.selectAddrIdByVipNo(vipNo);
    }

    @Override
    public AddrInfo selectAddrInfoByid(Integer addrId) {
        return addrInfoMapper.selectAddrInfoByid(addrId);
    }

    @Override
    public List<AddrInfo> getAllAddrinfoByVipInfoId(String vipNo) {
        return addrInfoMapper.getAllAddrinfoByVipInfoId(vipNo);
    }
}
